﻿using System.Configuration;

namespace BLL.Configuration.CDN
{
    /// <summary>
    /// CDN Element for web.config
    /// </summary>
    public class CdnElement : ConfigurationElement
    {
        /// <summary>
        /// Gets the name.
        /// </summary>
        [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
        public string Name
        {
            get
            {
                return this["name"] as string;
            }
        }

        /// <summary>
        /// Gets the value.
        /// </summary>
        [ConfigurationProperty("value", IsRequired = false)]
        public string Value
        {
            get
            {
                return this["value"] as string;
            }
        }
    }
}